package com.example.controller.user;

import com.example.service.message.IMessageService;
import oj.common.core.controller.BaseController;
import oj.common.core.domain.PageQueryDTO;
import oj.common.core.domain.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user/message")
public class UserMessageController  extends BaseController {
    @Autowired
    private IMessageService messageService;

    @GetMapping("/list")
    public TableDataInfo list (PageQueryDTO pageQueryDTO) {
        return messageService.list(pageQueryDTO);
    }
}
